-- card: 3432 from stack: in -- bmap block id: 0 -- flags: 4000 -- background id: 2571 -- name: -- part 1 (button) -- low flags: 00 -- high flags: A003 -- rect: left=339 top=53 right=75 bottom=458 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Sort ----- HyperTalk script ----- on mouseUp Put AnswerALot("What is the starting character?",5,4,3,2,1) into start Put AnswerALot("What is the ending character?",start + 4,Start + 3, start + 2,start + 1,start) into stop Put "megaSort(fld unsorted,tab,return," & quote & "t=i,c=char " & start & " to " & stop & quote & ") into fld sorted" into fld command put megaSort(fld unsorted,",",return, "t=i,c=char " & start &" to " & stop) into fld sorted end mouseUp -- part 2 (field) -- low flags: 01 -- high flags: 0001 -- rect: left=310 top=109 right=198 bottom=502 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 256 -- line height: 16 -- part name: -- part 4 (button) -- low flags: 00 -- high flags: 8003 -- rect: left=420 top=258 right=318 bottom=507 -- title width / last selected line: 0 -- icon id / first selected line: 1020 / 1020 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Notes on Chunking ----- HyperTalk script ----- on mouseUp push card visual effect dissolve go to card id 8652 end mouseUp -- part contents for background part 4 ----- text ----- qhishdjd mccjjscn lxskcncn cscnaj s jkdsasf asdfjvi asdvfko Oekflsd v0vkww a0vkv0s oifngw[p vovjavw -- part contents for background part 5 ----- text ----- mccjjscn cscnaj asdfjvi asdvfko oifngw[p qhishdjd s jkdsasf Oekflsd lxskcncn vovjavw a0vkv0s v0vkww -- part contents for card part 2 ----- text ----- Clicking on the above button will show you how megaSort can sort on a chunk of a field. -- part contents for background part 6 ----- text ----- megaSort(fld unsorted,tab,return,"t=i,c=char 3 to 5") into fld sorted